package com.itheima.exception;

/**
 * @Author: fan
 * @Desc: 业务异常、系统异常-异常抛出工具类（封装异常抛出代码）
 * @Date: 2022/6/7 17:26
 */
public class HeimaExceptionThrow {

	public static void bussinessException(Integer code, String errMsg) {
		throw new BusinessException(code, errMsg);
	}

	public static void systemException(Integer code, String errMsg) {
		throw new SystemException(code, errMsg);
	}
}